#!/bin/bash 
# testing the exit status of a funtion
# 

func1() {
    echo "trying to display a non-existent file"
    ls -l badifle 
}

echo "testing the function: "
func1
echo "The exit status is:$?"
